# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer:  Francesco Colista <fcolista@alpinelinux.org>
pkgname=gource
pkgver=0.51
pkgrel=2
pkgdesc="Software version control visualization"
url="https://gource.io/"
arch="all !s390x"
license="GPL-3.0"
makedepends="ftgl-dev sdl2-dev sdl2_image-dev pcre-dev glew-dev libpng-dev
	libjpeg-turbo-dev glu-dev boost-dev glm-dev"
subpackages="$pkgname-doc"
source="https://github.com/acaudwell/Gource/releases/download/$pkgname-$pkgver/$pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver

build() {
	cd "$builddir"
	./configure --prefix=/usr
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="f29326ffb2aa6f645fb941e08e41f0cbf8dd894d5a4d607b782caeb12a24e6446198027060b880e0ad14a36efbed19023620dd8c890cfc0c027fc90ac2d5be24  gource-0.51.tar.gz"
